// 导入
import { request } from "@/utils/request";

// 导出
export const getProductApi = (params: PRODUCT.GetProductPayloadType) => {
  return request<PRODUCT.GetProductResType>("/product/index", {
    method: "GET",
    params,
  });
};

export const deleteProductApi = (params: PRODUCT.DeleteProductPayloadType) => {
  return request<API.Result>("/product/delete", {
    method: "DELETE",
    params,
  });
};
